<?php

namespace Fize\Third\WechatWork\Qyapi;

use Fize\Third\WechatWork\QyapiAbstract;

class Ticket extends QyapiAbstract
{

    /**
     * 获取应用 jsapi_ticket
     * @param string $type 类型
     * @return array
     */
    public function get(string $type = 'agent_config'): array
    {
        return $this->httpGet("/ticket/get?access_token={$this->accessToken}&type={$type}");
    }

}